Microsoft Azure Replication Policies API

The Replication Policies API from Microsoft Azure, for replication policies.

GitHub OpenAPI
Business capability
Disaster Recovery Management BC-160.20

Operations 5

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

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies List replication policies in a Recovery Services vault · Microsoft Azure Gets The List Of Replication Policies #
Ask an LLM
“Which Site Recovery replication policies are defined in my vault?”
“Can I list every replication policy for one Recovery Services vault?”
Tell an agent
List the replication policies in vault {resourceName}.
Show replication policies for vault {resourceName} in group {resourceGroupName}, subscription {subscriptionId}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName} Get a replication policy · Microsoft Azure Gets The Requested Policy #
Ask an LLM
“Which settings does a specific replication policy apply?”
“How do I view the details of one Site Recovery policy?”
Tell an agent
Get replication policy {policyName} in vault {resourceName}.
Show policy {policyName} from resource group {resourceGroupName}, subscription {subscriptionId}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName} Create a replication policy · Microsoft Azure Creates The Policy #
Ask an LLM
“Can I create a new Site Recovery replication policy in a vault?”
“Which settings are passed when creating a replication policy?”
Tell an agent
Create replication policy {policyName} in vault {resourceName} with {properties}.
Add policy {policyName} to a vault in group {resourceGroupName}, subscription {subscriptionId}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName} Delete a replication policy · Microsoft Azure Delete The Policy #
Ask an LLM
“How do I delete a replication policy I no longer use?”
“Is removing a Site Recovery policy permanent?”
Tell an agent destructive · confirm first
Delete replication policy {policyName} from vault {resourceName}.
Remove policy {policyName} in group {resourceGroupName}, subscription {subscriptionId}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName} Update a replication policy · Microsoft Azure Updates The Policy #
Ask an LLM
“Can I change the settings of an existing replication policy?”
“What properties are editable on a Site Recovery policy?”
Tell an agent
Update replication policy {policyName} in vault {resourceName} with {properties}.
Modify existing policy {policyName} in group {resourceGroupName}, subscription {subscriptionId}.

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-replication-policies-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-replication-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2023-06-01'
  title: Microsoft Azure SiteRecoveryManagementClient Replication…
  x-ms-code-generation-settings:
    header: MICROSOFT_MIT_NO_VERSION
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Replication Policies
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies
  : get:
      tags:
      - Replication Policies
      summary: Microsoft Azure Gets The List Of Replication Policies
      description: Lists the replication policies for a vault.
      operationId: microsoftAzureReplicationpoliciesList
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyCollection'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Gets the list of replication policies.:
          $ref: ./examples/ReplicationPolicies_List.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}
  : get:
      tags:
      - Replication Policies
      summary: Microsoft Azure Gets The Requested Policy
      description: Gets the details of a replication policy.
      operationId: microsoftAzureReplicationpoliciesGet
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: policyName
        in: path
        description: Replication policy name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
      x-ms-examples:
        Gets the requested policy.:
          $ref: ./examples/ReplicationPolicies_Get.json
    put:
      tags:
      - Replication Policies
      summary: Microsoft Azure Creates The Policy
      description: The operation to create a replication policy.
      operationId: microsoftAzureReplicationpoliciesCreate
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: policyName
        in: path
        description: Replication policy name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Creates the policy.:
          $ref: ./examples/ReplicationPolicies_Create.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePolicyInput'
        description: Create policy input.
        required: true
    delete:
      tags:
      - Replication Policies
      summary: Microsoft Azure Delete The Policy
      description: The operation to delete a replication policy.
      operationId: microsoftAzureReplicationpoliciesDelete
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: policyName
        in: path
        description: Replication policy name.
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Accepted
        '204':
          description: NoContent
      x-ms-long-running-operation: true
      x-ms-examples:
        Delete the policy.:
          $ref: ./examples/ReplicationPolicies_Delete.json
    patch:
      tags:
      - Replication Policies
      summary: Microsoft Azure Updates The Policy
      description: The operation to update a replication policy.
      operationId: microsoftAzureReplicationpoliciesUpdate
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - $ref: '#/components/parameters/ResourceName'
      - $ref: '#/components/parameters/ResourceGroupName'
      - $ref: '#/components/parameters/SubscriptionId'
      - name: policyName
        in: path
        description: Policy Id.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '202':
          description: Accepted
      x-ms-long-running-operation: true
      x-ms-examples:
        Updates the policy.:
          $ref: ./examples/ReplicationPolicies_Update.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePolicyInput'
        description: Update Policy Input.
        required: true
components:
  schemas:
    CreatePolicyInputProperties:
      description: Policy creation properties.
      type: object
      properties:
        providerSpecificInput:
          $ref: '#/components/schemas/PolicyProviderSpecificInput'
          description: The ReplicationProviderSettings.
    PolicyCollection:
      description: Protection Profile Collection details.
      type: object
      properties:
        value:
          description: The policy details.
          type: array
          items:
            $ref: '#/components/schemas/Policy'
        nextLink:
          description: The value of next link.
          type: string
    PolicyProviderSpecificInput:
      description: Base class for provider specific input.
      required:
      - instanceType
      type: object
      properties:
        instanceType:
          description: The class type.
          type: string
      discriminator:
        propertyName: instanceType
    CreatePolicyInput:
      description: Protection Policy input.
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/CreatePolicyInputProperties'
          description: Policy creation properties.
    Policy:
      description: Protection profile details.
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      properties:
        properties:
          $ref: '#/components/schemas/PolicyProperties'
          description: The custom data.
    PolicyProperties:
      description: Protection profile custom data details.
      type: object
      properties:
        friendlyName:
          description: The FriendlyName.
          type: string
        providerSpecificDetails:
          $ref: '#/components/schemas/PolicyProviderSpecificDetails'
          description: The ReplicationChannelSetting.
    UpdatePolicyInputProperties:
      description: Policy update properties.
      type: object
      properties:
        replicationProviderSettings:
          $ref: '#/components/schemas/PolicyProviderSpecificInput'
          description: The ReplicationProviderSettings.
    PolicyProviderSpecificDetails:
      description: Base class for Provider specific details for policies.
      required:
      - instanceType
      type: object
      properties:
        instanceType:
          description: Gets the class type. Overridden in derived classes.
          type: string
      discriminator:
        propertyName: instanceType
    UpdatePolicyInput:
      description: Update policy input.
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/UpdatePolicyInputProperties'
          description: The ReplicationProviderSettings.
    Resource:
      description: Azure resource.
      type: object
      properties:
        id:
          description: Resource Id
          type: string
          readOnly: true
        name:
          description: Resource Name
          type: string
          readOnly: true
        type:
          description: Resource Type
          type: string
          readOnly: true
        location:
          description: Resource Location
          type: string
      x-ms-azure-resource: true
  parameters:
    ApiVersion:
      name: api-version
      in: query
      description: Client Api Version.
      required: true
      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: client
      schema:
        type: string
    ResourceName:
      name: resourceName
      in: path
      description: The name of the recovery services vault.
      required: true
      x-ms-parameter-location: client
      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