-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Added service endpoints APIs #1533
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
Merged
Changes from all commits
Commits
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
127 changes: 127 additions & 0 deletions
127
specification/network/resource-manager/Microsoft.Network/2017-06-01/endpointService.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,127 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "NetworkManagementClient", | ||
| "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", | ||
| "version": "2017-06-01" | ||
| }, | ||
| "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.Network/locations/{location}/virtualNetworkAvailableEndpointServices": { | ||
| "get": { | ||
| "operationId": "AvailableEndpointServices_List", | ||
| "description": "List what values of endpoint services are available for use.", | ||
| "parameters": [ | ||
| { | ||
| "name": "location", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The location to check available endpoint services." | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Request successful. Returns list of available endpoint services.", | ||
| "schema": { | ||
| "$ref": "#/definitions/EndpointServicesListResult" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| }, | ||
| "x-ms-examples": { | ||
| "EndpointServicesList": { "$ref": "./examples/EndpointServicesList.json" } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "EndpointServicesListResult": { | ||
| "properties": { | ||
| "value": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/EndpointServiceResult" | ||
| }, | ||
| "description": "List of available endpoint services in a region." | ||
| }, | ||
| "nextLink": { | ||
| "type": "string", | ||
| "description": "The URL to get the next set of results." | ||
| } | ||
| }, | ||
| "description": "Response for the ListAvailableEndpointServices API service call." | ||
| }, | ||
| "EndpointServiceResult": { | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "description": "Name of the endpoint service.", | ||
| "readOnly": true | ||
| }, | ||
| "type": { | ||
| "type": "string", | ||
| "description": "Type of the endpoint service.", | ||
| "readOnly": true | ||
| } | ||
| }, | ||
| "allOf": [ | ||
| { | ||
| "$ref": "./network.json#/definitions/SubResource" | ||
| } | ||
| ], | ||
| "description": "Endpoint service." | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "SubscriptionIdParameter": { | ||
| "name": "subscriptionId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." | ||
| }, | ||
| "ApiVersionParameter": { | ||
| "name": "api-version", | ||
| "in": "query", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "Client API version." | ||
| } | ||
| } | ||
| } |
30 changes: 30 additions & 0 deletions
30
.../network/resource-manager/Microsoft.Network/2017-06-01/examples/EndpointServicesList.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,30 @@ | ||
| { | ||
| "parameters": { | ||
| "location": "westus", | ||
| "api-version": "2017-06-01", | ||
| "subscriptionId": "subid" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "Microsoft.Storage", | ||
| "id": "/subscriptions/subid/providers/Microsoft.Network/virtualNetworkEndpointServices/Microsoft.Storage", | ||
| "type": "Microsoft.Network/virtualNetworkEndpointServices" | ||
| }, | ||
| { | ||
| "name": "Microsoft.Sql", | ||
| "id": "/subscriptions/subid/providers/Microsoft.Network/virtualNetworkEndpointServices/Microsoft.Sql", | ||
| "type": "Microsoft.Network/virtualNetworkEndpointServices" | ||
| }, | ||
| { | ||
| "name": "Microsoft.AzureActiveDirectory", | ||
| "id": "/subscriptions/subid/providers/Microsoft.Network/virtualNetworkEndpointServices/Microsoft.AzureActiveDirectory", | ||
| "type": "Microsoft.Network/virtualNetworkEndpointServices" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
55 changes: 55 additions & 0 deletions
55
...k/resource-manager/Microsoft.Network/2017-06-01/examples/SubnetCreateServiceEndpoint.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,55 @@ | ||
| { | ||
| "parameters": { | ||
| "subnetName": "subnet1", | ||
| "virtualNetworkName": "vnetname", | ||
| "resourceGroupName": "subnet-test", | ||
| "api-version": "2017-06-01", | ||
| "subscriptionId": "subid", | ||
| "subnetParameters": { | ||
| "properties": { | ||
| "addressPrefix": "10.0.0.0/16", | ||
| "serviceEndpoints": [ | ||
| { "service": "Microsoft.Storage" } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/subid/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", | ||
| "name": "subnet1", | ||
| "properties": { | ||
| "addressPrefix": "10.0.0.0/16", | ||
| "serviceEndpoints": [{ | ||
| "service": "Microsoft.Storage", | ||
| "locations": [ | ||
| "eastus2(stage)", | ||
| "usnorth(stage)" | ||
| ], | ||
| "provisioningState": "Succeeded" | ||
| }], | ||
| "provisioningState": "Succeeded" | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "id": "/subscriptions/subid/resourceGroups/subnet-test/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnet1", | ||
| "name": "subnet1", | ||
| "properties": { | ||
| "addressPrefix": "10.0.0.0/16", | ||
| "serviceEndpoints": [{ | ||
| "service": "Microsoft.Storage", | ||
| "locations": [ | ||
| "eastus2(stage)", | ||
| "usnorth(stage)" | ||
| ], | ||
| "provisioningState": "Succeeded" | ||
| }], | ||
| "provisioningState": "Succeeded" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EvgenyAgafonchikov @ravbhatnagar this property is used in response which may introduce API breaking changes, or SDK breaking changes if it's used in GET-PUT scenario. If we don't plan to use it in such scenario, we should mark it as "read only".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amarzavery @salameer this is well documented and we are okay with the breaking change.
it is read-write property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ravbhatnagar can you sign off on this new additional property.