|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "PostgreSQLServerManagementClient", |
| 5 | + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", |
| 6 | + "version": "2022-03-08-preview" |
| 7 | + }, |
| 8 | + "host": "management.azure.com", |
| 9 | + "schemes": [ |
| 10 | + "https" |
| 11 | + ], |
| 12 | + "consumes": [ |
| 13 | + "application/json" |
| 14 | + ], |
| 15 | + "produces": [ |
| 16 | + "application/json" |
| 17 | + ], |
| 18 | + "security": [ |
| 19 | + { |
| 20 | + "azure_auth": [ |
| 21 | + "user_impersonation" |
| 22 | + ] |
| 23 | + } |
| 24 | + ], |
| 25 | + "securityDefinitions": { |
| 26 | + "azure_auth": { |
| 27 | + "type": "oauth2", |
| 28 | + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", |
| 29 | + "flow": "implicit", |
| 30 | + "description": "Azure Active Directory OAuth2 Flow", |
| 31 | + "scopes": { |
| 32 | + "user_impersonation": "impersonate your user account" |
| 33 | + } |
| 34 | + } |
| 35 | + }, |
| 36 | + "paths": { |
| 37 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}": { |
| 38 | + "get": { |
| 39 | + "tags": [ |
| 40 | + "Backups" |
| 41 | + ], |
| 42 | + "operationId": "Backups_Get", |
| 43 | + "x-ms-examples": { |
| 44 | + "Get a backup for a server": { |
| 45 | + "$ref": "./examples/BackupGet.json" |
| 46 | + } |
| 47 | + }, |
| 48 | + "description": "Get specific backup for a given server.", |
| 49 | + "parameters": [ |
| 50 | + { |
| 51 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" |
| 52 | + }, |
| 53 | + { |
| 54 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" |
| 55 | + }, |
| 56 | + { |
| 57 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" |
| 58 | + }, |
| 59 | + { |
| 60 | + "$ref": "./common-types.json#/parameters/ServerNameParameter" |
| 61 | + }, |
| 62 | + { |
| 63 | + "$ref": "#/parameters/BackupNameParameter" |
| 64 | + } |
| 65 | + ], |
| 66 | + "responses": { |
| 67 | + "200": { |
| 68 | + "description": "OK", |
| 69 | + "schema": { |
| 70 | + "$ref": "#/definitions/ServerBackup" |
| 71 | + } |
| 72 | + }, |
| 73 | + "default": { |
| 74 | + "description": "Error response describing why the operation failed.", |
| 75 | + "schema": { |
| 76 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" |
| 77 | + } |
| 78 | + } |
| 79 | + } |
| 80 | + } |
| 81 | + }, |
| 82 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups": { |
| 83 | + "get": { |
| 84 | + "tags": [ |
| 85 | + "Backups" |
| 86 | + ], |
| 87 | + "operationId": "Backups_ListByServer", |
| 88 | + "x-ms-examples": { |
| 89 | + "List backups for a server": { |
| 90 | + "$ref": "./examples/BackupListByServer.json" |
| 91 | + } |
| 92 | + }, |
| 93 | + "description": "List all the backups for a given server.", |
| 94 | + "parameters": [ |
| 95 | + { |
| 96 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" |
| 97 | + }, |
| 98 | + { |
| 99 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" |
| 100 | + }, |
| 101 | + { |
| 102 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" |
| 103 | + }, |
| 104 | + { |
| 105 | + "$ref": "./common-types.json#/parameters/ServerNameParameter" |
| 106 | + } |
| 107 | + ], |
| 108 | + "responses": { |
| 109 | + "200": { |
| 110 | + "description": "OK", |
| 111 | + "schema": { |
| 112 | + "$ref": "#/definitions/ServerBackupListResult" |
| 113 | + } |
| 114 | + }, |
| 115 | + "default": { |
| 116 | + "description": "Error response describing why the operation failed.", |
| 117 | + "schema": { |
| 118 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" |
| 119 | + } |
| 120 | + } |
| 121 | + }, |
| 122 | + "x-ms-pageable": { |
| 123 | + "nextLinkName": "nextLink" |
| 124 | + } |
| 125 | + } |
| 126 | + } |
| 127 | + }, |
| 128 | + "definitions": { |
| 129 | + "ServerBackupProperties": { |
| 130 | + "type": "object", |
| 131 | + "properties": { |
| 132 | + "backupType": { |
| 133 | + "type": "string", |
| 134 | + "description": "Backup type.", |
| 135 | + "enum": [ |
| 136 | + "Full" |
| 137 | + ], |
| 138 | + "x-ms-enum": { |
| 139 | + "name": "Origin", |
| 140 | + "modelAsString": true |
| 141 | + } |
| 142 | + }, |
| 143 | + "completedTime": { |
| 144 | + "type": "string", |
| 145 | + "format": "date-time", |
| 146 | + "description": "Backup completed time (ISO8601 format)." |
| 147 | + }, |
| 148 | + "source": { |
| 149 | + "type": "string", |
| 150 | + "description": "Backup source" |
| 151 | + } |
| 152 | + }, |
| 153 | + "description": "The properties of a server backup." |
| 154 | + }, |
| 155 | + "ServerBackup": { |
| 156 | + "type": "object", |
| 157 | + "properties": { |
| 158 | + "properties": { |
| 159 | + "$ref": "#/definitions/ServerBackupProperties", |
| 160 | + "x-ms-client-flatten": true, |
| 161 | + "description": "The properties of a server backup." |
| 162 | + }, |
| 163 | + "systemData": { |
| 164 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", |
| 165 | + "readOnly": true, |
| 166 | + "description": "The system metadata relating to this resource." |
| 167 | + } |
| 168 | + }, |
| 169 | + "allOf": [ |
| 170 | + { |
| 171 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" |
| 172 | + } |
| 173 | + ], |
| 174 | + "description": "Server backup properties" |
| 175 | + }, |
| 176 | + "ServerBackupListResult": { |
| 177 | + "type": "object", |
| 178 | + "properties": { |
| 179 | + "value": { |
| 180 | + "type": "array", |
| 181 | + "items": { |
| 182 | + "$ref": "#/definitions/ServerBackup" |
| 183 | + }, |
| 184 | + "description": "The list of backups of a server." |
| 185 | + }, |
| 186 | + "nextLink": { |
| 187 | + "description": "The link used to get the next page of operations.", |
| 188 | + "type": "string" |
| 189 | + } |
| 190 | + }, |
| 191 | + "description": "A list of server backups." |
| 192 | + } |
| 193 | + }, |
| 194 | + "parameters": { |
| 195 | + "BackupNameParameter": { |
| 196 | + "name": "backupName", |
| 197 | + "in": "path", |
| 198 | + "required": true, |
| 199 | + "type": "string", |
| 200 | + "description": "The name of the backup.", |
| 201 | + "minLength": 1, |
| 202 | + "pattern": "^[-\\w\\._]+$", |
| 203 | + "x-ms-parameter-location": "method" |
| 204 | + } |
| 205 | + } |
| 206 | +} |
0 commit comments