Skip to content

Commit c09c320

Browse files
authored
Added new API and API version for private DNS zone suffix (Azure#13789)
* Added new API and API version for private DNS zone suffix * trigger validation pipelines * Add new API to readme * Fix ARM pipelines * Try fix again * Fix again * Add Operations API * Revert "Add Operations API" This reverts commit 9d4ca9e557763feb3a6089ff9d4c958b3843730e. * Revert "Revert "Add Operations API"" This reverts commit 7cf197c1d453764f0396713a2ab172a20e35b1c4. * Revert "Revert "Revert "Add Operations API""" This reverts commit 05744390e440984da8134b64a979a6e61fb9b7ae. * Revert "Revert "Revert "Revert "Add Operations API"""" This reverts commit 61b76b1623d9e5796bb8187edf0fc46351e78231. * Revert "Revert "Revert "Revert "Revert "Add Operations API""""" This reverts commit 9f55eb4c399eb48a8578906f6bea43b10c91b8be. * Address review comment from ARM * Revert "Address review comment from ARM" This reverts commit cb6d1b01860de72eec80856f64b602c72a1f26a7. * Revert "Revert "Address review comment from ARM"" This reverts commit 227cf73797ee24a674d76e3ccd2990b84bc8d11a. * Revert "Revert "Revert "Revert "Revert "Revert "Add Operations API"""""" This reverts commit 34ae6c70a514e0290ffb41f7ddb5bbbd5c6cbee3. * Revert "Revert "Revert "Revert "Revert "Revert "Revert "Add Operations API""""""" This reverts commit a11c889a65b0fa4257b03a247d75fbea769f4e2c. * Add previous APIs to tag * Retrigger build
1 parent c55d37d commit c09c320

File tree

3 files changed

+130
-0
lines changed

3 files changed

+130
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2021-03-31-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}/providers/Microsoft.DBForPostgreSql/getPrivateDnsZoneSuffix": {
38+
"post": {
39+
"tags": [
40+
"GetPrivateDnsZoneSuffix"
41+
],
42+
"operationId": "GetPrivateDnsZoneSuffix_Execute",
43+
"x-ms-examples": {
44+
"GetPrivateDnsZoneSuffix": {
45+
"$ref": "./examples/GetPrivateDnsZoneSuffix.json"
46+
}
47+
},
48+
"description": "Get private DNS zone suffix in the cloud",
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+
"in": "body",
58+
"name": "body",
59+
"required": true,
60+
"schema": {
61+
"type": "string",
62+
"enum": [
63+
"PostgreSQL",
64+
"PostgreSQLCitus",
65+
"MySQL",
66+
"MariaDb",
67+
"Oracle"
68+
]
69+
},
70+
"description": "The required parameters for getting private DNS zone suffix based on server type."
71+
}
72+
],
73+
"responses": {
74+
"200": {
75+
"description": "OK",
76+
"schema": {
77+
"$ref": "#/definitions/PrivateDnsZoneSuffix"
78+
}
79+
},
80+
"default": {
81+
"description": "Error response describing why the operation failed.",
82+
"schema": {
83+
"$ref": "#/definitions/CloudError"
84+
}
85+
}
86+
}
87+
}
88+
}
89+
},
90+
"definitions": {
91+
"PrivateDnsZoneSuffix": {
92+
"type": "string",
93+
"description": "Represents a resource name availability."
94+
},
95+
"CloudError": {
96+
"x-ms-external": true,
97+
"properties": {
98+
"error": {
99+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
100+
}
101+
},
102+
"description": "An error response from the Batch service."
103+
}
104+
}
105+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-03-31-privatepreview",
4+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
5+
"body": "PostgreSQL"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": "postgres.database.azure.com"
10+
}
11+
}
12+
}

specification/postgresql/resource-manager/readme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ description: The Microsoft Azure management API provides create, read, update, a
3030
openapi-type: arm
3131
tag: package-2020-01-01
3232
```
33+
### Tag: package-2021-03-31-privatepreview
34+
35+
These settings apply only when `--tag=package-2021-03-31-privatepreview` is specified on the command line.
36+
37+
``` yaml $(tag) == 'package-2021-03-31-privatepreview'
38+
input-file:
39+
- Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json
40+
- Microsoft.DBforPostgreSQL/preview/2020-11-05-preview/Databases.json
41+
- Microsoft.DBforPostgreSQL/preview/2021-03-31-privatepreview/PrivateDnsZone.json
42+
```
43+
44+
45+
3346
### Tag: package-2020-11-05-preview
3447

3548
These settings apply only when `--tag=package-2020-11-05-preview` is specified on the command line.

0 commit comments

Comments
 (0)