-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[APIM]Add private endpoint connection APIs #15115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ArcturusZhang
merged 24 commits into
Azure:apim-2021-04-01-preview
from
RupengLiu:rupliu/apimprivateconnection
Aug 27, 2021
Merged
Changes from 19 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e8b2a30
Add private endpoint connection apis
RupengLiu 5e07c65
add readme
RupengLiu 1799202
quick fixes
RupengLiu 0d2ae42
fix to PE contract
RupengLiu 6c77e77
Small fixes
RupengLiu 50ff379
small fixes
RupengLiu d655a16
small fixes
RupengLiu a57e60e
Small fixes
RupengLiu 11fd710
small fixes
RupengLiu 939554e
small fix
RupengLiu db5746e
small fixes
RupengLiu 25a2b1d
small fixes
RupengLiu a7b11d7
small fixes
RupengLiu 71b0c0b
Update readme.md
msyyc 1d24cf4
fix error
RupengLiu fefeed6
Merge branch 'rupliu/apimprivateconnection' of https://github.com/Rup…
RupengLiu 9e23bf7
Merge remote-tracking branch 'upstream/apim-2021-04-01-preview' into …
RupengLiu dd40442
small fix
RupengLiu ba3961c
fix format
RupengLiu b5a98d2
address comments
RupengLiu 9b1f4d1
Merge branch 'apim-2021-04-01-preview' into rupliu/apimprivateconnection
RupengLiu b4a2e48
small fixes
RupengLiu c8552fb
Change to lower case
RupengLiu 867281c
small fixes
RupengLiu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
332 changes: 332 additions & 0 deletions
332
.../resource-manager/Microsoft.ApiManagement/preview/2021-04-01-preview/apimprivatelink.json
This file contains hidden or 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,332 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "ApiManagementClient", | ||
| "description": "Use these REST APIs for performing operations on Private Endpoint Connection in Azure API Management deployment.", | ||
| "version": "2021-04-01-preview" | ||
| }, | ||
| "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}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections": { | ||
| "get": { | ||
| "tags": [ | ||
| "PrivateEndpointConnections" | ||
| ], | ||
| "operationId": "PrivateEndpointConnection_ListByService", | ||
| "description": "Lists all private endpoint connections of the API Management service instance.", | ||
| "x-ms-examples": { | ||
| "ApiManagementListPrivateEndpointConnections": { | ||
| "$ref": "./examples/ApiManagementListPrivateEndpointConnections.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}": { | ||
| "get": { | ||
| "tags": [ | ||
| "PrivateEndpointConnections" | ||
| ], | ||
| "operationId": "PrivateEndpointConnection_GetByName", | ||
| "description": "Gets the details of the Private Endpoint Connection specified by its identifier.", | ||
| "x-ms-examples": { | ||
| "ApiManagementGetPrivateEndpointConnection": { | ||
| "$ref": "./examples/ApiManagementGetPrivateEndpointConnection.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "name": "privateEndpointConnectionName", | ||
| "in": "path", | ||
| "description": "Name of the private endpoint connection.", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "put": { | ||
| "tags": [ | ||
| "PrivateEndpointConnections" | ||
| ], | ||
| "operationId": "PrivateEndpointConnection_CreateOrUpdate", | ||
| "description": "Creates a new Private Endpoint Connection or updates an existing one.", | ||
| "x-ms-examples": { | ||
| "ApiManagementApproveOrRejectPrivateEndpointConnection": { | ||
| "$ref": "./examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "name": "privateEndpointConnectionName", | ||
| "in": "path", | ||
| "description": "Name of the private endpoint connection.", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "name": "privateEndpointConnectionRequest", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "./definitions.json#/definitions/PrivateEndpointConnectionRequest" | ||
| } | ||
| } | ||
| ], | ||
| "responses": { | ||
| "201": { | ||
| "description": "Request to approve or reject private endpoint connection. Location header contains the URL where the status of the long running operation can be checked." | ||
| }, | ||
| "200": { | ||
| "description": "Private Endpoint Connection Request was completed.", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true | ||
| }, | ||
| "delete": { | ||
| "tags": [ | ||
| "PrivateEndpointConnections" | ||
| ], | ||
| "operationId": "PrivateEndpointConnection_Delete", | ||
| "description": "Deletes the specified Private Endpoint Connection.", | ||
| "x-ms-examples": { | ||
| "ApiManagementDeletePrivateEndpointConnection": { | ||
| "$ref": "./examples/ApiManagementDeletePrivateEndpointConnection.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "name": "privateEndpointConnectionName", | ||
| "in": "path", | ||
| "description": "Name of the private endpoint connection.", | ||
| "required": true, | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "The Private Endpoint Connection was successfully deleted." | ||
| }, | ||
| "201": { | ||
|
RupengLiu marked this conversation as resolved.
Outdated
|
||
| "description": "Request to delete API was accepted. Location header contains the URL where the status of the long running operation can be checked." | ||
| }, | ||
| "204": { | ||
| "description": "Private endpoint connection does not exist." | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources": { | ||
| "get": { | ||
| "tags": [ | ||
| "PrivateEndpointConnections" | ||
| ], | ||
| "description": "Description for Gets the private link resources", | ||
| "operationId": "PrivateEndpointConnection_ListPrivateLinkResources", | ||
| "x-ms-examples": { | ||
| "ApiManagementListPrivateLinkGroupResources": { | ||
| "$ref": "./examples/ApiManagementListPrivateLinkGroupResources.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResourceListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}": { | ||
| "get": { | ||
| "tags": [ | ||
| "PrivateEndpointConnections" | ||
| ], | ||
| "description": "Description for Gets the private link resources", | ||
| "operationId": "PrivateEndpointConnection_GetPrivateLinkResource", | ||
| "x-ms-examples": { | ||
| "ApiManagementGetPrivateLinkGroupResource": { | ||
| "$ref": "./examples/ApiManagementGetPrivateLinkGroupResource.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "name": "privateLinkSubResourceName", | ||
| "in": "path", | ||
| "description": "Name of the private link resource.", | ||
| "required": true, | ||
| "type": "string" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResource" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": {}, | ||
| "parameters": {} | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.