swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector ReplicationPolicies API schemes: - https tags: - name: ReplicationPolicies paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies : get: tags: - ReplicationPolicies summary: Microsoft Azure Gets The List Of Replication Policies description: Lists the replication policies for a vault. operationId: microsoftAzureReplicationpoliciesList produces: - application/json parameters: - $ref: '#/parameters/ApiVersion' - $ref: '#/parameters/ResourceName' - $ref: '#/parameters/ResourceGroupName' - $ref: '#/parameters/SubscriptionId' responses: '200': description: OK schema: $ref: '#/definitions/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: - ReplicationPolicies summary: Microsoft Azure Gets The Requested Policy description: Gets the details of a replication policy. operationId: microsoftAzureReplicationpoliciesGet produces: - application/json parameters: - $ref: '#/parameters/ApiVersion' - $ref: '#/parameters/ResourceName' - $ref: '#/parameters/ResourceGroupName' - $ref: '#/parameters/SubscriptionId' - name: policyName in: path description: Replication policy name. required: true type: string responses: '200': description: OK schema: $ref: '#/definitions/Policy' x-ms-examples: Gets the requested policy.: $ref: ./examples/ReplicationPolicies_Get.json put: tags: - ReplicationPolicies summary: Microsoft Azure Creates The Policy description: The operation to create a replication policy. operationId: microsoftAzureReplicationpoliciesCreate consumes: - application/json produces: - application/json parameters: - $ref: '#/parameters/ApiVersion' - $ref: '#/parameters/ResourceName' - $ref: '#/parameters/ResourceGroupName' - $ref: '#/parameters/SubscriptionId' - name: policyName in: path description: Replication policy name. required: true type: string - name: input in: body description: Create policy input. required: true schema: $ref: '#/definitions/CreatePolicyInput' responses: '200': description: OK schema: $ref: '#/definitions/Policy' '202': description: Accepted x-ms-long-running-operation: true x-ms-examples: Creates the policy.: $ref: ./examples/ReplicationPolicies_Create.json delete: tags: - ReplicationPolicies summary: Microsoft Azure Delete The Policy description: The operation to delete a replication policy. operationId: microsoftAzureReplicationpoliciesDelete parameters: - $ref: '#/parameters/ApiVersion' - $ref: '#/parameters/ResourceName' - $ref: '#/parameters/ResourceGroupName' - $ref: '#/parameters/SubscriptionId' - name: policyName in: path description: Replication policy name. required: true 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: - ReplicationPolicies summary: Microsoft Azure Updates The Policy description: The operation to update a replication policy. operationId: microsoftAzureReplicationpoliciesUpdate consumes: - application/json produces: - application/json parameters: - $ref: '#/parameters/ApiVersion' - $ref: '#/parameters/ResourceName' - $ref: '#/parameters/ResourceGroupName' - $ref: '#/parameters/SubscriptionId' - name: policyName in: path description: Policy Id. required: true type: string - name: input in: body description: Update Policy Input. required: true schema: $ref: '#/definitions/UpdatePolicyInput' responses: '200': description: OK schema: $ref: '#/definitions/Policy' '202': description: Accepted x-ms-long-running-operation: true x-ms-examples: Updates the policy.: $ref: ./examples/ReplicationPolicies_Update.json definitions: 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: instanceType PolicyProviderSpecificInput: description: Base class for provider specific input. required: - instanceType type: object properties: instanceType: description: The class type. type: string discriminator: instanceType CreatePolicyInput: description: Protection Policy input. type: object properties: properties: $ref: '#/definitions/CreatePolicyInputProperties' description: Policy creation properties. 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 CreatePolicyInputProperties: description: Policy creation properties. type: object properties: providerSpecificInput: $ref: '#/definitions/PolicyProviderSpecificInput' description: The ReplicationProviderSettings. UpdatePolicyInput: description: Update policy input. type: object properties: properties: $ref: '#/definitions/UpdatePolicyInputProperties' description: The ReplicationProviderSettings. PolicyCollection: description: Protection Profile Collection details. type: object properties: value: description: The policy details. type: array items: $ref: '#/definitions/Policy' nextLink: description: The value of next link. type: string UpdatePolicyInputProperties: description: Policy update properties. type: object properties: replicationProviderSettings: $ref: '#/definitions/PolicyProviderSpecificInput' description: The ReplicationProviderSettings. PolicyProperties: description: Protection profile custom data details. type: object properties: friendlyName: description: The FriendlyName. type: string providerSpecificDetails: $ref: '#/definitions/PolicyProviderSpecificDetails' description: The ReplicationChannelSetting. Policy: description: Protection profile details. type: object allOf: - $ref: '#/definitions/Resource' properties: properties: $ref: '#/definitions/PolicyProperties' description: The custom data. parameters: ResourceGroupName: name: resourceGroupName in: path description: The name of the resource group where the recovery services vault is present. required: true type: string x-ms-parameter-location: client ResourceName: name: resourceName in: path description: The name of the recovery services vault. required: true type: string x-ms-parameter-location: client ApiVersion: name: api-version in: query description: Client Api Version. required: true type: string SubscriptionId: name: subscriptionId in: path description: The subscription Id. required: true type: string x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'