Skip to content

Commit

Permalink
1. Change CheckPrivateLinkServiceVisibility API, the input now has a …
Browse files Browse the repository at this point in the history
…body content that contains a private link service alias string.

2. Change both CheckPrivateLinkServiceVisibility/AutoApprovedPrivateLinkServices API to support for with/without ResourceGroup parameter.
  • Loading branch information
bowen0106 committed Jul 1, 2019
1 parent 9418d48 commit 768782d
Show file tree
Hide file tree
Showing 10 changed files with 322 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"parameters": {
"api-version": "2019-04-01",
"location": "regionName",
"subscriptionId": "subId",
"resourceGroupName": "rg1"
"subscriptionId": "subId"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2019-04-01",
"location": "regionName",
"subscriptionId": "subId",
"resourceGroupName": "rg1"
},
"responses": {
"200": {
"body": {
"value": [
{
"privateLinkService" : "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1"
},
{
"privateLinkService" : "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls2"
},
{
"privateLinkService" : "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls3"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "subid",
"location": "westus"
"location": "westus",
"parameters": {
"privateLinkServiceAlias": "mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"
}
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2019-04-01",
"subscriptionId": "subid",
"location": "westus",
"resourceGroupName": "rg1",
"parameters": {
"privateLinkServiceAlias": "mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"
}
},
"responses": {
"200": {
"body": {
"visible": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,15 @@
"type": "string",
"description": "The location of the domain name."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CheckPrivateLinkServiceVisibilityRequest"
},
"description": "The request body of CheckPrivateLinkService API call."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
Expand All @@ -463,13 +472,106 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility": {
"post": {
"tags": [
"PrivateLinkServices"
],
"operationId": "PrivateLinkServices_CheckPrivateLinkServiceVisibilityByResourceGroup",
"description": "Checks the subscription is visible to private link service",
"parameters": [
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location of the domain name."
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CheckPrivateLinkServiceVisibilityRequest"
},
"description": "The request body of CheckPrivateLinkService API call."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. Returns whether the subscription is visible to private link service.",
"schema": {
"$ref": "#/definitions/PrivateLinkServiceVisibility"
}
}
},
"x-ms-examples": {
"Check private link service visibility": {
"$ref": "./examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices": {
"get": {
"tags": [
"PrivateLinkServices"
],
"operationId": "PrivateLinkServices_ListAutoApprovedPrivateLinkServices",
"description": "Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.",
"parameters": [
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location of the domain name."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.",
"schema": {
"$ref": "#/definitions/AutoApprovedPrivateLinkServicesResult"
}
}
},
"x-ms-examples": {
"Get list of private link service id that can be linked to a private end point with auto approved": {
"$ref": "./examples/AutoApprovedPrivateLinkServicesGet.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices": {
"get": {
"tags": [
"PrivateLinkServices"
],
"operationId": "PrivateLinkServices_ListAutoApprovedPrivateLinkServicesByResourceGroup",
"description": "Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.",
"parameters": [
{
"name": "location",
Expand Down Expand Up @@ -502,7 +604,7 @@
},
"x-ms-examples": {
"Get list of private link service id that can be linked to a private end point with auto approved": {
"$ref": "./examples/AutoApprovedPrivateLinkServicesGet.json"
"$ref": "./examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json"
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -719,6 +821,15 @@
},
"description": "Response for the ListPrivateLinkService API service call."
},
"CheckPrivateLinkServiceVisibilityRequest": {
"properties": {
"privateLinkServiceAlias": {
"type": "string",
"description": "The alias of the private link service."
}
},
"description": "Request body of the CheckPrivateLinkServiceVisibility API service call."
},
"PrivateLinkServiceVisibility": {
"properties": {
"visible": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"parameters": {
"api-version": "2019-06-01",
"location": "regionName",
"subscriptionId": "subId",
"resourceGroupName": "rg1"
"subscriptionId": "subId"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2019-06-01",
"location": "regionName",
"subscriptionId": "subId",
"resourceGroupName": "rg1"
},
"responses": {
"200": {
"body": {
"value": [
{
"privateLinkService" : "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls1"
},
{
"privateLinkService" : "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls2"
},
{
"privateLinkService" : "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls3"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"parameters": {
"api-version": "2019-06-01",
"subscriptionId": "subid",
"location": "westus"
"location": "westus",
"parameters": {
"privateLinkServiceAlias": "mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"
}
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2019-06-01",
"subscriptionId": "subid",
"location": "westus",
"resourceGroupName": "rg1",
"parameters": {
"privateLinkServiceAlias": "mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"
}
},
"responses": {
"200": {
"body": {
"visible": true
}
}
}
}
Loading

0 comments on commit 768782d

Please sign in to comment.