From fd28f3e29140f9918a4fa0d56b6f3933687b80ea Mon Sep 17 00:00:00 2001 From: Sandeep Bansal Date: Wed, 31 Oct 2018 10:19:13 -0700 Subject: [PATCH 1/7] Swagger support for Bastion Host --- .../stable/2019-02-01/bastionHost.json | 440 ++++++++++++++++++ .../examples/BastionHostDelete.json | 13 + .../2019-02-01/examples/BastionHostGet.json | 44 ++ .../BastionHostListByResourceGroup.json | 44 ++ .../BastionHostListBySubscription.json | 43 ++ .../examples/BastionHostListByVnet.json | 43 ++ .../2019-02-01/examples/BastionHostPut.json | 89 ++++ .../network/resource-manager/readme.md | 1 + 8 files changed, 717 insertions(+) create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/bastionHost.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostDelete.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostGet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByResourceGroup.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListBySubscription.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostPut.json diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/bastionHost.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/bastionHost.json new file mode 100644 index 000000000000..cd9d2a0e881f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/bastionHost.json @@ -0,0 +1,440 @@ +{ + "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": "2018-12-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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}":{ + "delete":{ + "tags":[ + "BastionHosts" + ], + "operationId":"BastionHosts_Delete", + "description":"Deletes the specified Bastion Host.", + "parameters":[ + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"bastionHostName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the Bastion Host." + }, + { + "$ref":"./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref":"./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "202":{ + "description":"Accepted and the operation will complete asynchronously." + }, + "204":{ + "description":"Request successful. Resource with the specified name does not exist" + }, + "200":{ + "description":"Delete successful." + } + }, + "x-ms-examples":{ + "Delete Bastion Host":{ + "$ref":"./examples/BastionHostDelete.json" + } + }, + "x-ms-long-running-operation":true + }, + "get":{ + "tags":[ + "BastionHosts" + ], + "operationId":"BastionHosts_Get", + "description":"Gets the specified Bastion Host.", + "parameters":[ + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"bastionHostName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the Bastion Host." + }, + { + "$ref":"./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref":"./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "200":{ + "description":"Request successful. The operation returns an BastionHost resource.", + "schema":{ + "$ref":"#/definitions/BastionHost" + } + } + }, + "x-ms-examples":{ + "Get Bastion Host":{ + "$ref":"./examples/BastionHostGet.json" + } + } + }, + "put":{ + "tags":[ + "BastionHosts" + ], + "operationId":"BastionHosts_CreateOrUpdate", + "description":"Creates or updates the specified Bastion Host.", + "parameters":[ + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "name":"bastionHostName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the Bastion Host." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/BastionHost" + }, + "description":"Parameters supplied to the create or update Bastion Host operation." + }, + { + "$ref":"./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref":"./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "201":{ + "description":"Create successful. The operation returns the resulting BastionHost resource.", + "schema":{ + "$ref":"#/definitions/BastionHost" + } + }, + "200":{ + "description":"Update successful. The operation returns the resulting BastionHost resource.", + "schema":{ + "$ref":"#/definitions/BastionHost" + } + } + }, + "x-ms-examples":{ + "Create Bastion Host":{ + "$ref":"./examples/BastionHostPut.json" + } + }, + "x-ms-long-running-operation":true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts":{ + "get":{ + "tags":[ + "BastionHosts" + ], + "operationId":"BastionHosts_ListBySubscription", + "description":"Lists all Bastion Hosts in a subscription.", + "parameters":[ + { + "$ref":"./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref":"./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "200":{ + "description":"Success. The operation returns a list of BastionHost resources.", + "schema":{ + "$ref":"#/definitions/BastionHostListResult" + } + } + }, + "x-ms-examples":{ + "List all Bastion Hosts for a given subscription":{ + "$ref":"./examples/BastionHostListBySubscription.json" + } + }, + "x-ms-pageable":{ + "nextLinkName":"nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts":{ + "get":{ + "tags":[ + "BastionHosts" + ], + "operationId":"BastionHosts_ListByResourceGroup", + "description":"Lists all Bastion Hosts in a resource group.", + "parameters":[ + { + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group." + }, + { + "$ref":"./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref":"./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "200":{ + "description":"Success. The operation returns a list of BastionHost resources.", + "schema":{ + "$ref":"#/definitions/BastionHostListResult" + } + } + }, + "x-ms-examples":{ + "List all Bastion Hosts for a given resource group":{ + "$ref":"./examples/BastionHostListByResourceGroup.json" + } + }, + "x-ms-pageable":{ + "nextLinkName":"nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/{virtualNetworkName}/bastionHosts/default":{ + "get":{ + "tags":[ + "BastionHosts" + ], + "operationId":"BastionHosts_ListVnet", + "description":"Gets the Bastion Host associated with a virtual network.", + "parameters":[ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualNetworkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network." + }, + { + "$ref":"./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref":"./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses":{ + "200":{ + "description":"Success. The operation returns BastionHost associated with network.", + "schema":{ + "$ref":"#/definitions/BastionHost" + } + } + }, + "x-ms-examples":{ + "Get Bastion Host for a given vnet":{ + "$ref":"./examples/BastionHostListByVnet.json" + } + } + } + } + }, + "definitions":{ + "BastionHostIPConfigurationPropertiesFormat":{ + "properties":{ + "subnet":{ + "$ref":"./network.json#/definitions/SubResource", + "description":"Reference of the subnet resource. This field is a mandatory input." + }, + "publicIPAddress": { + "$ref": "./network.json#/definitions/SubResource", + "description": "Reference of the PublicIP resource. This field is a mandatory input." + }, + "provisioningState":{ + "description":"The provisioning state of the resource.", + "$ref":"./network.json#/definitions/ProvisioningState" + }, + "privateIPAllocationMethod": { + "type": "string", + "description": "PrivateIP allocation method.", + "enum": [ + "Static", + "Dynamic" + ], + "x-ms-enum": { + "name": "IPAllocationMethod", + "modelAsString": true + } + } + }, + "description":"Properties of IP configuration of an Bastion Host." + }, + "BastionHostIPConfiguration":{ + "properties":{ + "properties":{ + "x-ms-client-flatten":true, + "$ref":"#/definitions/BastionHostIPConfigurationPropertiesFormat", + "description":"Represents the ip configuration associated with the resource." + }, + "name":{ + "type":"string", + "readOnly": true, + "description":"Name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "etag":{ + "type":"string", + "readOnly": true, + "description":"A unique read-only string that changes whenever the resource is updated." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Ip configuration type." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Id for The resource" + } + }, + "allOf":[ + { + "$ref":"./network.json#/definitions/SubResource" + } + ], + "description":"IP configuration of an Bastion Host." + }, + "BastionHostPropertiesFormat":{ + "properties":{ + "ipConfigurations":{ + "type":"array", + "items":{ + "$ref":"#/definitions/BastionHostIPConfiguration" + }, + "description":"IP configuration of the Bastion Host resource." + }, + "dnsName":{ + "type":"string", + "description":"FQDN for the endpoint on which bastion host is accessible." + }, + "provisioningState":{ + "description":"The provisioning state of the resource.", + "$ref":"./network.json#/definitions/ProvisioningState" + } + }, + "description":"Properties of the Bastion Host." + }, + "BastionHost":{ + "properties":{ + "properties":{ + "x-ms-client-flatten":true, + "$ref":"#/definitions/BastionHostPropertiesFormat", + "description":"Represents the bastion host resource." + }, + "name":{ + "type":"string", + "readOnly": true, + "description":"Name of the resource that is unique within a resource group. This name can be used to access the resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Bastion host type." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Id for The resource" + }, + "etag":{ + "type":"string", + "readOnly":true, + "description":"Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf":[ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description":"Bastion Host resource" + }, + "BastionHostListResult":{ + "properties":{ + "value":{ + "type":"array", + "items":{ + "$ref":"#/definitions/BastionHost" + }, + "description":"List of Bastion Hosts in a resource group." + }, + "nextLink":{ + "type":"string", + "description":"URL to get the next set of results." + } + }, + "description":"Response for ListBastionHosts API service call." + } + } + } \ No newline at end of file diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostDelete.json new file mode 100644 index 000000000000..de3e8aaed210 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostDelete.json @@ -0,0 +1,13 @@ +{ + "parameters" : { + "api-version": "2018-10-01", + "subscriptionId" : "subid", + "resourceGroupName" : "rg1", + "bastionHostName" : "bastionhosttenant" + }, + "responses" : { + "200" : { }, + "202" : { }, + "204" : { } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostGet.json new file mode 100644 index 000000000000..96e47dca866e --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostGet.json @@ -0,0 +1,44 @@ +{ + "parameters":{ + "api-version": "2018-10-01", + "subscriptionId":"subid", + "resourceGroupName":"rg1", + "bastionHostName":"bastionhosttenant'" + }, + "responses":{ + "200":{ + "body":{ + "name":"bastionhost'", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type":"Microsoft.Network/bastionHosts", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "location":"West US", + "tags":{ + "key1":"value1" + }, + "properties":{ + "provisioningState":"Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations":[ + { + "name":"bastionHostIpConfiguration", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties":{ + "provisioningState":"Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByResourceGroup.json new file mode 100644 index 000000000000..e2722da26812 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByResourceGroup.json @@ -0,0 +1,44 @@ +{ + "parameters":{ + "api-version": "2018-10-01", + "subscriptionId":"subid", + "resourceGroupName":"rg1" + }, + "responses":{ + "200":{ + "body":{ + "value":[ + { + "name":"bastionhost'", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type":"Microsoft.Network/bastionHosts", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "location":"West US", + "properties":{ + "provisioningState":"Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations":[ + { + "name":"bastionHostIpConfiguration", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties":{ + "provisioningState":"Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListBySubscription.json new file mode 100644 index 000000000000..2658c429eb5b --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListBySubscription.json @@ -0,0 +1,43 @@ +{ + "parameters":{ + "api-version": "2018-10-01", + "subscriptionId":"subid" + }, + "responses":{ + "200":{ + "body":{ + "value":[ + { + "name":"bastionhost'", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type":"Microsoft.Network/bastionHosts", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "location":"West US", + "properties":{ + "provisioningState":"Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations":[ + { + "name":"bastionHostIpConfiguration", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties":{ + "provisioningState":"Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json new file mode 100644 index 000000000000..298c26659ddb --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json @@ -0,0 +1,43 @@ +{ + "parameters":{ + "api-version": "2018-10-01", + "subscriptionId":"subid", + "resourceGroupName":"rg1", + "virtualNetworkName":"vnet2" + }, + "responses":{ + "200":{ + "body":{ + "value":{ + "name":"bastionhost'", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type":"Microsoft.Network/bastionHosts", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "location":"West US", + "properties":{ + "provisioningState":"Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations":[ + { + "name":"bastionHostIpConfiguration", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties":{ + "provisioningState":"Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostPut.json new file mode 100644 index 000000000000..1317eae50d8f --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostPut.json @@ -0,0 +1,89 @@ +{ + "parameters":{ + "api-version": "2018-10-01", + "subscriptionId":"subid", + "resourceGroupName":"rg1", + "bastionHostName":"bastionhosttenant'", + "parameters":{ + "properties":{ + "ipConfigurations":[ + { + "name":"bastionHostIpConfiguration", + "properties":{ + "subnet":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + }, + "responses":{ + "200":{ + "body":{ + "name":"bastionhost'", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type":"Microsoft.Network/bastionHosts", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "location":"West US", + "properties":{ + "provisioningState":"Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations":[ + { + "name":"bastionHostIpConfiguration", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties":{ + "provisioningState":"Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + }, + "201":{ + "body":{ + "name":"bastionhost'", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type":"Microsoft.Network/bastionHosts", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "location":"West US", + "properties":{ + "provisioningState":"Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations":[ + { + "name":"bastionHostIpConfiguration", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties":{ + "provisioningState":"Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" + } + } + } + ] + } + } + } + } +} diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index d91a121dbbc3..724756c91b6d 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -86,6 +86,7 @@ input-file: - Microsoft.Network/stable/2019-02-01/availableDelegations.json - Microsoft.Network/stable/2019-02-01/azureFirewall.json - Microsoft.Network/stable/2019-02-01/azureFirewallFqdnTag.json + - Microsoft.Network/stable/2019-02-01/bastionHost.json - Microsoft.Network/stable/2019-02-01/checkDnsAvailability.json - Microsoft.Network/stable/2019-02-01/ddosCustomPolicy.json - Microsoft.Network/stable/2019-02-01/ddosProtectionPlan.json From 498cb2942d23f401cc29fe8a105325a7fe935b40 Mon Sep 17 00:00:00 2001 From: Sandeep Bansal Date: Mon, 20 May 2019 12:10:43 -0700 Subject: [PATCH 2/7] Fixing example --- .../examples/BastionHostListByVnet.json | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json index 298c26659ddb..f72e49019653 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json @@ -7,35 +7,33 @@ }, "responses":{ "200":{ - "body":{ - "value":{ - "name":"bastionhost'", - "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", - "type":"Microsoft.Network/bastionHosts", - "etag":"w/\\00000000-0000-0000-0000-000000000000\\", - "location":"West US", - "properties":{ - "provisioningState":"Succeeded", - "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", - "ipConfigurations":[ - { - "name":"bastionHostIpConfiguration", - "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", - "etag":"w/\\00000000-0000-0000-0000-000000000000\\", - "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", - "properties":{ - "provisioningState":"Succeeded", - "privateIPAllocationMethod": "Dynamic", - "subnet":{ - "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" - }, - "publicIPAddress":{ - "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" - } + "body":{ + "name":"bastionhost'", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", + "type":"Microsoft.Network/bastionHosts", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "location":"West US", + "properties":{ + "provisioningState":"Succeeded", + "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", + "ipConfigurations":[ + { + "name":"bastionHostIpConfiguration", + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", + "etag":"w/\\00000000-0000-0000-0000-000000000000\\", + "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", + "properties":{ + "provisioningState":"Succeeded", + "privateIPAllocationMethod": "Dynamic", + "subnet":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" + }, + "publicIPAddress":{ + "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" } } - ] } + ] } } } From 409da3289fcee4aa0c162796936e900e74070c7d Mon Sep 17 00:00:00 2001 From: Sandeep Bansal Date: Tue, 21 May 2019 10:38:49 -0700 Subject: [PATCH 3/7] Incorporated feedback comment --- .../bastionHost.json | 56 +++++++------------ .../examples/BastionHostDelete.json | 2 +- .../examples/BastionHostGet.json | 2 +- .../BastionHostListByResourceGroup.json | 2 +- .../BastionHostListBySubscription.json | 2 +- .../examples/BastionHostListByVnet.json | 2 +- .../examples/BastionHostPut.json | 2 +- .../network/resource-manager/readme.md | 2 +- 8 files changed, 26 insertions(+), 44 deletions(-) rename specification/network/resource-manager/Microsoft.Network/stable/{2019-02-01 => 2019-04-01}/bastionHost.json (91%) rename specification/network/resource-manager/Microsoft.Network/stable/{2019-02-01 => 2019-04-01}/examples/BastionHostDelete.json (86%) rename specification/network/resource-manager/Microsoft.Network/stable/{2019-02-01 => 2019-04-01}/examples/BastionHostGet.json (98%) rename specification/network/resource-manager/Microsoft.Network/stable/{2019-02-01 => 2019-04-01}/examples/BastionHostListByResourceGroup.json (98%) rename specification/network/resource-manager/Microsoft.Network/stable/{2019-02-01 => 2019-04-01}/examples/BastionHostListBySubscription.json (98%) rename specification/network/resource-manager/Microsoft.Network/stable/{2019-02-01 => 2019-04-01}/examples/BastionHostListByVnet.json (98%) rename specification/network/resource-manager/Microsoft.Network/stable/{2019-02-01 => 2019-04-01}/examples/BastionHostPut.json (99%) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/bastionHost.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json similarity index 91% rename from specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/bastionHost.json rename to specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json index cd9d2a0e881f..f87613e8a356 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/bastionHost.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json @@ -3,7 +3,7 @@ "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": "2018-12-01" + "version": "2019-04-01" }, "host":"management.azure.com", "schemes":[ @@ -79,7 +79,10 @@ "$ref":"./examples/BastionHostDelete.json" } }, - "x-ms-long-running-operation":true + "x-ms-long-running-operation":true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } }, "get":{ "tags":[ @@ -179,7 +182,10 @@ "$ref":"./examples/BastionHostPut.json" } }, - "x-ms-long-running-operation":true + "x-ms-long-running-operation":true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts":{ @@ -260,7 +266,7 @@ "tags":[ "BastionHosts" ], - "operationId":"BastionHosts_ListVnet", + "operationId":"BastionHosts_ListByVirtualNetwork", "description":"Gets the Bastion Host associated with a virtual network.", "parameters":[ { @@ -305,29 +311,25 @@ "properties":{ "subnet":{ "$ref":"./network.json#/definitions/SubResource", - "description":"Reference of the subnet resource. This field is a mandatory input." + "description":"Reference of the subnet resource." }, "publicIPAddress": { "$ref": "./network.json#/definitions/SubResource", - "description": "Reference of the PublicIP resource. This field is a mandatory input." + "description": "Reference of the PublicIP resource." }, "provisioningState":{ "description":"The provisioning state of the resource.", "$ref":"./network.json#/definitions/ProvisioningState" }, "privateIPAllocationMethod": { - "type": "string", - "description": "PrivateIP allocation method.", - "enum": [ - "Static", - "Dynamic" - ], - "x-ms-enum": { - "name": "IPAllocationMethod", - "modelAsString": true - } - } + "$ref": "./network.json#/definitions/IPAllocationMethod", + "description": "Private IP allocation method." + } }, + "required": [ + "subnet", + "publicIPAddress" + ], "description":"Properties of IP configuration of an Bastion Host." }, "BastionHostIPConfiguration":{ @@ -351,11 +353,6 @@ "readOnly": true, "type": "string", "description": "Ip configuration type." - }, - "id": { - "readOnly": true, - "type": "string", - "description": "Id for The resource" } }, "allOf":[ @@ -392,21 +389,6 @@ "$ref":"#/definitions/BastionHostPropertiesFormat", "description":"Represents the bastion host resource." }, - "name":{ - "type":"string", - "readOnly": true, - "description":"Name of the resource that is unique within a resource group. This name can be used to access the resource." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Bastion host type." - }, - "id": { - "readOnly": true, - "type": "string", - "description": "Id for The resource" - }, "etag":{ "type":"string", "readOnly":true, diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostDelete.json similarity index 86% rename from specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostDelete.json rename to specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostDelete.json index de3e8aaed210..2469fc52e342 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostDelete.json @@ -1,6 +1,6 @@ { "parameters" : { - "api-version": "2018-10-01", + "api-version": "2019-04-01", "subscriptionId" : "subid", "resourceGroupName" : "rg1", "bastionHostName" : "bastionhosttenant" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostGet.json similarity index 98% rename from specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostGet.json rename to specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostGet.json index 96e47dca866e..24f9e08756e7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostGet.json @@ -1,6 +1,6 @@ { "parameters":{ - "api-version": "2018-10-01", + "api-version": "2019-04-01", "subscriptionId":"subid", "resourceGroupName":"rg1", "bastionHostName":"bastionhosttenant'" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByResourceGroup.json similarity index 98% rename from specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByResourceGroup.json rename to specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByResourceGroup.json index e2722da26812..bde4bc29b1d1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByResourceGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters":{ - "api-version": "2018-10-01", + "api-version": "2019-04-01", "subscriptionId":"subid", "resourceGroupName":"rg1" }, diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListBySubscription.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListBySubscription.json similarity index 98% rename from specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListBySubscription.json rename to specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListBySubscription.json index 2658c429eb5b..8d6ec7cc3924 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListBySubscription.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListBySubscription.json @@ -1,6 +1,6 @@ { "parameters":{ - "api-version": "2018-10-01", + "api-version": "2019-04-01", "subscriptionId":"subid" }, "responses":{ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByVnet.json similarity index 98% rename from specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json rename to specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByVnet.json index f72e49019653..d853a9096ce5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostListByVnet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByVnet.json @@ -1,6 +1,6 @@ { "parameters":{ - "api-version": "2018-10-01", + "api-version": "2019-04-01", "subscriptionId":"subid", "resourceGroupName":"rg1", "virtualNetworkName":"vnet2" diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostPut.json similarity index 99% rename from specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostPut.json rename to specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostPut.json index 1317eae50d8f..d58edb3b6115 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-02-01/examples/BastionHostPut.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostPut.json @@ -1,6 +1,6 @@ { "parameters":{ - "api-version": "2018-10-01", + "api-version": "2019-04-01", "subscriptionId":"subid", "resourceGroupName":"rg1", "bastionHostName":"bastionhosttenant'", diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 724756c91b6d..57d7a465582b 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -43,6 +43,7 @@ input-file: - Microsoft.Network/stable/2019-04-01/availableDelegations.json - Microsoft.Network/stable/2019-04-01/azureFirewall.json - Microsoft.Network/stable/2019-04-01/azureFirewallFqdnTag.json + - Microsoft.Network/stable/2019-04-01/bastionHost.json - Microsoft.Network/stable/2019-04-01/checkDnsAvailability.json - Microsoft.Network/stable/2019-04-01/ddosCustomPolicy.json - Microsoft.Network/stable/2019-04-01/ddosProtectionPlan.json @@ -86,7 +87,6 @@ input-file: - Microsoft.Network/stable/2019-02-01/availableDelegations.json - Microsoft.Network/stable/2019-02-01/azureFirewall.json - Microsoft.Network/stable/2019-02-01/azureFirewallFqdnTag.json - - Microsoft.Network/stable/2019-02-01/bastionHost.json - Microsoft.Network/stable/2019-02-01/checkDnsAvailability.json - Microsoft.Network/stable/2019-02-01/ddosCustomPolicy.json - Microsoft.Network/stable/2019-02-01/ddosProtectionPlan.json From acd3b323082583638a995cdbb5d6f276f888a06c Mon Sep 17 00:00:00 2001 From: Sandeep Bansal Date: Tue, 21 May 2019 10:40:02 -0700 Subject: [PATCH 4/7] Incorporated feedback comment --- .../Microsoft.Network/stable/2019-04-01/bastionHost.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json index f87613e8a356..e50e2be44a09 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json @@ -193,7 +193,7 @@ "tags":[ "BastionHosts" ], - "operationId":"BastionHosts_ListBySubscription", + "operationId":"BastionHosts_List", "description":"Lists all Bastion Hosts in a subscription.", "parameters":[ { From cc788db980e6ff7edc61f18925e830bf4247982a Mon Sep 17 00:00:00 2001 From: Sandeep Bansal Date: Tue, 21 May 2019 12:03:04 -0700 Subject: [PATCH 5/7] Incorporated feedback comment --- .../Microsoft.Network/stable/2019-04-01/bastionHost.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json index e50e2be44a09..7587ad23d8a2 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json @@ -165,13 +165,13 @@ ], "responses":{ "201":{ - "description":"Create successful. The operation returns the resulting BastionHost resource.", + "description":"Create successful. The operation returns the resulting Bastion Host resource.", "schema":{ "$ref":"#/definitions/BastionHost" } }, "200":{ - "description":"Update successful. The operation returns the resulting BastionHost resource.", + "description":"Update successful. The operation returns the resulting Bastion Host resource.", "schema":{ "$ref":"#/definitions/BastionHost" } @@ -205,7 +205,7 @@ ], "responses":{ "200":{ - "description":"Success. The operation returns a list of BastionHost resources.", + "description":"Success. The operation returns a list of Bastion Host resources.", "schema":{ "$ref":"#/definitions/BastionHostListResult" } From 44a74cbf568f8eb8f246d99e70e7c0f818be7051 Mon Sep 17 00:00:00 2001 From: Evgeny Agafonchikov Date: Wed, 22 May 2019 10:44:48 +0300 Subject: [PATCH 6/7] Fixes for descriptions; common suppression --- .../Microsoft.Network/stable/2019-04-01/bastionHost.json | 8 ++++---- specification/network/resource-manager/readme.md | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json index 7587ad23d8a2..0411d91ab318 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json @@ -27,7 +27,7 @@ "type":"oauth2", "authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize", "flow":"implicit", - "description":"Azure Active Directory OAuth2 Flow", + "description":"Azure Active Directory OAuth2 Flow.", "scopes":{ "user_impersonation":"impersonate your user account" } @@ -68,7 +68,7 @@ "description":"Accepted and the operation will complete asynchronously." }, "204":{ - "description":"Request successful. Resource with the specified name does not exist" + "description":"Request successful. Resource with the specified name does not exist." }, "200":{ "description":"Delete successful." @@ -400,7 +400,7 @@ "$ref": "./network.json#/definitions/Resource" } ], - "description":"Bastion Host resource" + "description":"Bastion Host resource." }, "BastionHostListResult":{ "properties":{ @@ -419,4 +419,4 @@ "description":"Response for ListBastionHosts API service call." } } - } \ No newline at end of file + } diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 57d7a465582b..c30db0d34508 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -895,6 +895,9 @@ directive: - suppress: RequiredPropertiesMissingInResourceModel from: azureFirewallFqdnTag.json reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: bastionHost.json + reason: name, id and type properties are inherited from the upper level - suppress: RequiredPropertiesMissingInResourceModel from: checkDnsAvailability.json reason: name, id and type properties are inherited from the upper level From de5f384fc885b05e6d8511ad646fc95452fbf4d5 Mon Sep 17 00:00:00 2001 From: Sandeep Bansal Date: Wed, 22 May 2019 11:45:52 -0700 Subject: [PATCH 7/7] Removing list by vnet api as we are not going to support it --- .../stable/2019-04-01/bastionHost.json | 44 ------------------- .../examples/BastionHostListByVnet.json | 41 ----------------- 2 files changed, 85 deletions(-) delete mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByVnet.json diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json index 7587ad23d8a2..bd3e6867d43b 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/bastionHost.json @@ -260,50 +260,6 @@ "nextLinkName":"nextLink" } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/{virtualNetworkName}/bastionHosts/default":{ - "get":{ - "tags":[ - "BastionHosts" - ], - "operationId":"BastionHosts_ListByVirtualNetwork", - "description":"Gets the Bastion Host associated with a virtual network.", - "parameters":[ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "virtualNetworkName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the virtual network." - }, - { - "$ref":"./network.json#/parameters/ApiVersionParameter" - }, - { - "$ref":"./network.json#/parameters/SubscriptionIdParameter" - } - ], - "responses":{ - "200":{ - "description":"Success. The operation returns BastionHost associated with network.", - "schema":{ - "$ref":"#/definitions/BastionHost" - } - } - }, - "x-ms-examples":{ - "Get Bastion Host for a given vnet":{ - "$ref":"./examples/BastionHostListByVnet.json" - } - } - } } }, "definitions":{ diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByVnet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByVnet.json deleted file mode 100644 index d853a9096ce5..000000000000 --- a/specification/network/resource-manager/Microsoft.Network/stable/2019-04-01/examples/BastionHostListByVnet.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters":{ - "api-version": "2019-04-01", - "subscriptionId":"subid", - "resourceGroupName":"rg1", - "virtualNetworkName":"vnet2" - }, - "responses":{ - "200":{ - "body":{ - "name":"bastionhost'", - "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant'", - "type":"Microsoft.Network/bastionHosts", - "etag":"w/\\00000000-0000-0000-0000-000000000000\\", - "location":"West US", - "properties":{ - "provisioningState":"Succeeded", - "dnsName": "bst-9d89d361-100e-4c01-b92d-466548c476dc.bastion.azure.com", - "ipConfigurations":[ - { - "name":"bastionHostIpConfiguration", - "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/bastionHosts/bastionhosttenant/bastionHostIpConfigurations/bastionHostIpConfiguration", - "etag":"w/\\00000000-0000-0000-0000-000000000000\\", - "type": "Microsoft.Network/bastionHosts/bastionHostIpConfigurations", - "properties":{ - "provisioningState":"Succeeded", - "privateIPAllocationMethod": "Dynamic", - "subnet":{ - "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet" - }, - "publicIPAddress":{ - "id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName" - } - } - } - ] - } - } - } - } -}