This is an archive version of the document. To get the most up-to-date information, see the current version.

Set Azure SQL Backup Policy Priority

You can set the priority order for backup policies.

Request

To set the priority order, send the HTTP POST request to the /policies/sql/orderPriorities endpoint.

HTTP Request

POST https://<hostname>/api/v3/policies/sql/orderPriorities

Request Headers

The request contains the following headers.

Header

Required

Value

Description

Authorization

Required

Bearer <Access-Token>

Authenticates a client who sends the request to the server. Must contain the access token for the current logon session in the Bearer <Access-Token> format.

Request Body

Set the policy IDs in the following format in the required order:

"string($uuid)"

Response

The server returns the following response to the client.

Response Codes

A successfully completed operation returns a response code 204 (No Content).

Response Headers

The response to this request contains the following headers. The response may also include additional standard HTTP headers.

Header

Value

Description

Content-length

integer

Identifies the length of the response body message, in bytes.

Content-type

  • application/json
  • application/problem+json

Identifies the media type of the response body message.

Set Azure SQL Backup Policy PriorityExample

The following request sets the backup policy priority order.

Request:

POST https://51.11.247.127/api/v3/policies/sql/orderPriorities

 

Request Header:

Authorization: Bearer <Access-Token>

Content-Type: application/json

 

Request Body:

 

[

 "65d3bc9f-e7b94-4a3d-a87a-fa1f5d2d432b",

 "a93bc5e5-3b93-4641-a112-1f3e18a6c947",

 "8cd8dbc5-e774-4a3d-a87a-f77f5d27f32b"

]    

 

Response:

204