|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "version": "2022-03-08-privatepreview", |
| 5 | + "title": "PostgreSQLManagementClient", |
| 6 | + "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." |
| 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/locations/{locationName}/getCachedServerName": { |
| 38 | + "post": { |
| 39 | + "tags": [ |
| 40 | + "GetCachedServerName" |
| 41 | + ], |
| 42 | + "operationId": "GetCachedServerName_Execute", |
| 43 | + "x-ms-examples": { |
| 44 | + "GetCachedServerName": { |
| 45 | + "$ref": "./examples/GetCachedServerName.json" |
| 46 | + } |
| 47 | + }, |
| 48 | + "description": "Get available cached server name for fast provisioning", |
| 49 | + "parameters": [ |
| 50 | + { |
| 51 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 52 | + }, |
| 53 | + { |
| 54 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" |
| 55 | + }, |
| 56 | + { |
| 57 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" |
| 58 | + }, |
| 59 | + { |
| 60 | + "$ref": "#/parameters/LocationNameParameter" |
| 61 | + }, |
| 62 | + { |
| 63 | + "name": "cachedServerNameRequest", |
| 64 | + "in": "body", |
| 65 | + "required": true, |
| 66 | + "schema": { |
| 67 | + "$ref": "#/definitions/CachedServerNameRequest" |
| 68 | + }, |
| 69 | + "description": "The required parameters for get cached name available for fast provisioning." |
| 70 | + } |
| 71 | + ], |
| 72 | + "responses": { |
| 73 | + "200": { |
| 74 | + "description": "OK", |
| 75 | + "schema": { |
| 76 | + "$ref": "#/definitions/CachedServerName" |
| 77 | + } |
| 78 | + }, |
| 79 | + "default": { |
| 80 | + "description": "Error response describing why the operation failed.", |
| 81 | + "schema": { |
| 82 | + "$ref": "#/definitions/CloudError" |
| 83 | + } |
| 84 | + } |
| 85 | + } |
| 86 | + } |
| 87 | + } |
| 88 | + }, |
| 89 | + "definitions": { |
| 90 | + "CachedServerNameRequest": { |
| 91 | + "type": "object", |
| 92 | + "required": [ |
| 93 | + "version", |
| 94 | + "storage", |
| 95 | + "sku" |
| 96 | + ], |
| 97 | + "properties": { |
| 98 | + "version": { |
| 99 | + "$ref": "#/definitions/ServerVersion", |
| 100 | + "description": "PostgreSQL Server version." |
| 101 | + }, |
| 102 | + "storage": { |
| 103 | + "$ref": "#/definitions/Storage", |
| 104 | + "default": null, |
| 105 | + "description": "Storage properties of a server." |
| 106 | + }, |
| 107 | + "sku": { |
| 108 | + "$ref": "#/definitions/Sku", |
| 109 | + "description": "The SKU (pricing tier) of the server." |
| 110 | + } |
| 111 | + }, |
| 112 | + "description": "Request from client to get available cached server name" |
| 113 | + }, |
| 114 | + "CachedServerName": { |
| 115 | + "type": "object", |
| 116 | + "properties": { |
| 117 | + "name": { |
| 118 | + "type": "string", |
| 119 | + "description": "The name of available cached server", |
| 120 | + "readOnly": true |
| 121 | + } |
| 122 | + }, |
| 123 | + "description": "Represents a resource name of a cached server" |
| 124 | + }, |
| 125 | + "ServerVersion": { |
| 126 | + "type": "string", |
| 127 | + "description": "The version of a server.", |
| 128 | + "enum": [ |
| 129 | + "13", |
| 130 | + "12", |
| 131 | + "11" |
| 132 | + ], |
| 133 | + "x-ms-enum": { |
| 134 | + "name": "ServerVersion", |
| 135 | + "modelAsString": true |
| 136 | + } |
| 137 | + }, |
| 138 | + "Storage": { |
| 139 | + "properties": { |
| 140 | + "storageSizeGB": { |
| 141 | + "type": "integer", |
| 142 | + "format": "int32", |
| 143 | + "description": "Max storage allowed for a server." |
| 144 | + } |
| 145 | + }, |
| 146 | + "description": "Storage properties of a server" |
| 147 | + }, |
| 148 | + "Sku": { |
| 149 | + "properties": { |
| 150 | + "name": { |
| 151 | + "type": "string", |
| 152 | + "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." |
| 153 | + }, |
| 154 | + "tier": { |
| 155 | + "type": "string", |
| 156 | + "description": "The tier of the particular SKU, e.g. Burstable.", |
| 157 | + "enum": [ |
| 158 | + "Burstable", |
| 159 | + "GeneralPurpose", |
| 160 | + "MemoryOptimized" |
| 161 | + ], |
| 162 | + "x-ms-enum": { |
| 163 | + "name": "SkuTier", |
| 164 | + "modelAsString": true |
| 165 | + } |
| 166 | + } |
| 167 | + }, |
| 168 | + "required": [ |
| 169 | + "name", |
| 170 | + "tier" |
| 171 | + ], |
| 172 | + "description": "Sku information related properties of a server." |
| 173 | + }, |
| 174 | + "CloudError": { |
| 175 | + "x-ms-external": true, |
| 176 | + "properties": { |
| 177 | + "error": { |
| 178 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" |
| 179 | + } |
| 180 | + }, |
| 181 | + "description": "An error response from the Batch service." |
| 182 | + } |
| 183 | + }, |
| 184 | + "parameters": { |
| 185 | + "LocationNameParameter": { |
| 186 | + "name": "locationName", |
| 187 | + "in": "path", |
| 188 | + "required": true, |
| 189 | + "type": "string", |
| 190 | + "description": "The name of the location.", |
| 191 | + "x-ms-parameter-location": "method" |
| 192 | + } |
| 193 | + } |
| 194 | +} |
0 commit comments