-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new API and API version for private DNS zone suffix (#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 9d4ca9e. * Revert "Revert "Add Operations API"" This reverts commit 7cf197c. * Revert "Revert "Revert "Add Operations API""" This reverts commit 0574439. * Revert "Revert "Revert "Revert "Add Operations API"""" This reverts commit 61b76b1. * Revert "Revert "Revert "Revert "Revert "Add Operations API""""" This reverts commit 9f55eb4. * Address review comment from ARM * Revert "Address review comment from ARM" This reverts commit cb6d1b0. * Revert "Revert "Address review comment from ARM"" This reverts commit 227cf73. * Revert "Revert "Revert "Revert "Revert "Revert "Add Operations API"""""" This reverts commit 34ae6c7. * Revert "Revert "Revert "Revert "Revert "Revert "Revert "Add Operations API""""""" This reverts commit a11c889. * Add previous APIs to tag * Retrigger build
- Loading branch information
Showing
3 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
105 changes: 105 additions & 0 deletions
105
...e-manager/Microsoft.DBforPostgreSQL/preview/2021-03-31-privatepreview/PrivateDnsZone.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2021-03-31-privatepreview", | ||
"title": "PostgreSQLManagementClient", | ||
"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." | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/getPrivateDnsZoneSuffix": { | ||
"post": { | ||
"tags": [ | ||
"GetPrivateDnsZoneSuffix" | ||
], | ||
"operationId": "GetPrivateDnsZoneSuffix_Execute", | ||
"x-ms-examples": { | ||
"GetPrivateDnsZoneSuffix": { | ||
"$ref": "./examples/GetPrivateDnsZoneSuffix.json" | ||
} | ||
}, | ||
"description": "Get private DNS zone suffix in the cloud", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"in": "body", | ||
"name": "body", | ||
"required": true, | ||
"schema": { | ||
"type": "string", | ||
"enum": [ | ||
"PostgreSQL", | ||
"PostgreSQLCitus", | ||
"MySQL", | ||
"MariaDb", | ||
"Oracle" | ||
] | ||
}, | ||
"description": "The required parameters for getting private DNS zone suffix based on server type." | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/PrivateDnsZoneSuffix" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/CloudError" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"PrivateDnsZoneSuffix": { | ||
"type": "string", | ||
"description": "Represents a resource name availability." | ||
}, | ||
"CloudError": { | ||
"x-ms-external": true, | ||
"properties": { | ||
"error": { | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" | ||
} | ||
}, | ||
"description": "An error response from the Batch service." | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...t.DBforPostgreSQL/preview/2021-03-31-privatepreview/examples/GetPrivateDnsZoneSuffix.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-03-31-privatepreview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"body": "PostgreSQL" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": "postgres.database.azure.com" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters